﻿@model Jb.Web.ViewModels.UserViewModel
@using Jb.Web.Utility;
@using Jb.Common.Extensions;

@{
    String pageTitle = String.Format("Dashboard of {0}", Model.UserName);
    if(Model != null && Model.JobSeeker != null && String.Compare(Model.JobSeeker.Name, AppConstants.ValueOf.UNKNOWN, 0) != 0){
        pageTitle = String.Format("Dashboard of {0}", Model.JobSeeker.Name);
    }
    ViewBag.Title = Html.GetPageTitle(pageTitle);
    ///Set the Selected Left Navigation Menu
    ViewData[AppConstants.ViewDataKeys.SELECTED_MENU] = JobSeekerMenu.Dashboard;
}
<div class="jb-page-heading">
    <h1>@pageTitle</h1>
    <div>
        Welcome to @ConfigReader.SiteName
    </div>
</div>

<div class="jb-page-content">    
    @if (Model.JobSeeker != null && !Model.JobSeeker.HasProfileCompleted.ToBoolean())
    {
    <p>
        Complete your profile to become more visible to the employers. <br/>
        <a href="@Url.JobSeekerUrl("profileedit", "home")" class="">Click Here</a> to edit your profile.   
    </p>
    }
    else if(Model.JobSeeker.ModifiedOn.ToDateTime() < DateTime.Now.AddDays(-10)){
        <p>Update your profile frequently to be more visible to employers. You last updated your profile on @Model.JobSeeker.ModifiedOn.ToDateTime().ToString(AppConstants.ValueOf.DATE_FROMAT_DISPLAY)</p>        
    }    
</div>

